package com.mes_for_xxxxxx.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 物料信息表
 * </p>
 *
 * @author 179005
 * @since 2024-09-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("material")
@ApiModel(value="Material对象", description="物料信息表")
public class Material implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "物料名称")
    private String name;

    @ApiModelProperty(value = "物料类型")
    private String type;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "库存数量")
    private BigDecimal quantity;

    @ApiModelProperty(value = "物料二维码")
    private String qrCode;

    @ApiModelProperty(value = "有效期")
    private LocalDate expirationDate;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createdAt;


}
